<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .box {
            position: relative;
            width: 40px;
            height: 40px;
            margin: 100px auto;
            animation: move 1s linear infinite;
        }

        .box2 {
            position: absolute;
            width: 30px;
            height: 20px;
            background-color: red;
            border-radius: 10px 0 0 10px;
            transform: rotate(45deg);
        }

        .box1 {
            position: absolute;
            top: 0px;
            left: 7px;
            width: 30px;
            height: 20px;
            background-color: red;
            border-radius: 10px 0 0 10px;
            transform: rotate(135deg);
        }

        @keyframes move {
            0% {}

            50% {
                transform: translate(0px,0px) rotate(0deg) scale(2);
            }
            100%{
                transform: translate(0px,0px) rotate(0deg) scale(2);
            }
        }
    </style>
</head>

<body>
    <div class="box">
        <div class="box1"></div>
        <div class="box2"></div>
    </div>
    <div class="box">
        <div class="box1"></div>
        <div class="box2"></div>
    </div>
    <div class="box">
        <div class="box1"></div>
        <div class="box2"></div>
    </div>
</body>

</html>